package com.bw.module_cashier.adapter

import android.widget.CheckBox
import com.bw.lib_common.entity.CashierBillEntity
import com.bw.module_cashier.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * 智慧园区-05-收银台V1.1-20250507
 */
class BillDetailAdapter:BaseQuickAdapter<CashierBillEntity,BaseViewHolder>(R.layout.item_cashier_detail_bill) {
    override fun convert(holder: BaseViewHolder, item: CashierBillEntity) {
        holder.setText(R.id.chargeType,item.chargeType)
        holder.setText(R.id.paymentTime,item.paymentTime)
        holder.setText(R.id.chargeAmount,"￥"+item.chargeAmount)
        holder.getView<CheckBox>(R.id.check).isChecked = item.checked
    }
}